home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / boot / netBoot.new / h / setbus.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-19  |  629 b   |  32 lines

  1.  
  2. /*    @(#)setbus.h 1.1 86/09/27 SMI    */
  3.  
  4. /*
  5.  * Copyright (c) 1986 by Sun Microsystems, Inc.
  6.  */
  7.  
  8. /*
  9.  * Declarations of bus-error-recovery structures.
  10.  *
  11.  * In your function, declare:
  12.  *    foo()
  13.  *    {
  14.  *        auto bus_buf busbuf;
  15.  *
  16.  * Then call setbus with the buffer as argument.  Setbus will return
  17.  * 0 the first time you call, and will return 1 later (from the same call)
  18.  * if a bus error ever occurs before you call unsetbus().
  19.  *
  20.  * Note that, like setjmp, setbus trashes register variables in your
  21.  * routine.
  22.  */
  23. struct busbuf {
  24.     long    misc[3];
  25.     long    regs[16];
  26. };
  27.  
  28. typedef struct busbuf bus_buf[1];
  29.  
  30. int setbus();
  31. void unsetbus();
  32.